#!/bin/bash

case "$1" in
	start)
		mpfun1 /home/gibo/piksla/sounds/play_fun_1.wav -quiet 2>&1 > /dev/null
		mpFun1 http://86.49.93.190:8000/fun1-192 -cache 1024 > /dev/null
	;;
	
	stop)
		killall mpFun1
		mpfun1 /home/gibo/piksla/sounds/fun_1_stopped.wav -quiet 2>&1 > /dev/null
	;;
	
	restart)
		killall mpFun1
		mpfun1 /home/gibo/piksla/sounds/play_fun_1.wav -quiet 2>&1 > /dev/null
		mpFun1 http://86.49.93.190:8000/fun1-192 -cache 1024 > /dev/null
	;;
	
	*)
		echo "Usage: $N {start|stop|restart}" >&2
		exit 1
	;;
esac

exit 0